package net.zhengxinyun.performance.service.incentive;

import net.zhengxinyun.performance.entity.IncentiveTypeEntity;
import net.zhengxinyun.performance.entity.IncentiveTypeItemEntity;
import net.zhengxinyun.performance.filter.IncentiveTypeFilter;
import net.zhengxinyun.performance.mapper.incentive.IncentiveType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 正向激励 加分事项编辑定制
 */
@Service
public class IncentiveTypeSericeImpl implements IncentiveTypeSerice {

    @Autowired
    private IncentiveType typeMapper;

    @Override
    public List<IncentiveTypeFilter> queryType(IncentiveTypeEntity entity) {
        return typeMapper.queryType(entity);
    }

    @Override
    public int deleteType(Long id) {
        return typeMapper.deleteType(id);
    }

    @Override
    public int insertType(IncentiveTypeEntity entity) {
        return typeMapper.insertType(entity);
    }

    @Override
    public int updateType(IncentiveTypeEntity entity) {
        return typeMapper.updateType(entity);
    }


    @Override
    public List<IncentiveTypeItemEntity> queryItems(Long id) {
        return typeMapper.queryItems(id);
    }

    @Override
    public int deleteItems(Long id) {
        return typeMapper.deleteItems(id);
    }

    @Override
    public int insertItems(List<IncentiveTypeItemEntity> list) {
        return typeMapper.insertItems(list);
    }

    @Override
    public int updateItems(IncentiveTypeItemEntity entity) {
        return typeMapper.updateItems(entity);
    }
}
